<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="expires" content="0">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>后台管理首页</title>
    <script th:src="@{/webjars/jquery/3.4.1/jquery.js}"></script>
    <link th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet"/>
    <link th:href="@{/css/Mindex.css}" rel="stylesheet"/>
</head>
<body>

    <form style="display: none" action="/toIndex" method="post">
        <input id="userNumber" name="userNumber" th:value="${User.userNumber}"/>
        <button type="submit" id="submit">submit</button>
    </form>
    <div class="container">
        <h1 class="text-center" id="myMessage">欢迎你[[${User.userName}]]<small><a id="toIndex">前台</a><a th:href="@{/signOut}" class="text-right">[退出登陆]</a></small></h1>
        <div class="row" id="tab">
            <div class="col-sm-6 col-12 text-center"><a th:href="@{/MiYiTuKu/Management/Users/0}"><img th:src="@{/image/users.png}"/>用户管理</a></div>
            <div class="col-sm-6 col-12 text-center"><a th:href="@{/Resources/Images/imagesManage/0}"><img th:src="@{/image/images.png}">图片资源管理</a></div>
        </div>
    </div>
    <div th:replace="Login::foot"></div>
    <script>
        $(function(){
            $("#toIndex").click(function(){
                $("#submit").click();
            });
        });
    </script>
</body>
</html>